home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / bbs_util / bsrc_260.zip / INCLUDE.ZIP / PROTOTYP.H < prev    next >
C/C++ Source or Header  |  1996-03-27  |  13KB  |  379 lines

  1. /*--------------------------------------------------------------------------*/
  2. /*                                                                          */
  3. /*                                                                          */
  4. /*      ------------         Bit-Bucket Software, Co.                       */
  5. /*      \ 10001101 /         Writers and Distributors of                    */
  6. /*       \ 011110 /          Freely Available<tm> Software.                 */
  7. /*        \ 1011 /                                                          */
  8. /*         ------                                                           */
  9. /*                                                                          */
  10. /*              (C) Copyright 1987-96, Bit Bucket Software Co.              */
  11. /*                                                                          */
  12. /*                                                                          */
  13. /*                                                                          */
  14. /*                Prototype definitions used in BinkleyTerm                 */
  15. /*                                                                          */
  16. /*                                                                          */
  17. /*    For complete  details  of the licensing restrictions, please refer    */
  18. /*    to the License  agreement,  which  is published in its entirety in    */
  19. /*    the MAKEFILE and BT.C, and also contained in the file LICENSE.260.    */
  20. /*                                                                          */
  21. /*    USE  OF THIS FILE IS SUBJECT TO THE  RESTRICTIONS CONTAINED IN THE    */
  22. /*    BINKLEYTERM  LICENSING  AGREEMENT.  IF YOU DO NOT FIND THE TEXT OF    */
  23. /*    THIS  AGREEMENT IN ANY OF THE  AFOREMENTIONED FILES,  OR IF YOU DO    */
  24. /*    NOT HAVE THESE FILES,  YOU  SHOULD  IMMEDIATELY CONTACT BIT BUCKET    */
  25. /*    SOFTWARE CO.  AT ONE OF THE  ADDRESSES  LISTED BELOW.  IN NO EVENT    */
  26. /*    SHOULD YOU  PROCEED TO USE THIS FILE  WITHOUT HAVING  ACCEPTED THE    */
  27. /*    TERMS  OF  THE  BINKLEYTERM  LICENSING  AGREEMENT,  OR  SUCH OTHER    */
  28. /*    AGREEMENT AS YOU ARE ABLE TO REACH WITH BIT BUCKET SOFTWARE, CO.      */
  29. /*                                                                          */
  30. /*                                                                          */
  31. /* You can contact Bit Bucket Software Co. at any one of the following      */
  32. /* addresses:                                                               */
  33. /*                                                                          */
  34. /* Bit Bucket Software Co.        FidoNet  1:104/501, 1:343/491             */
  35. /* P.O. Box 460398                AlterNet 7:42/1491                        */
  36. /* Aurora, CO 80046               BBS-Net  86:2030/1                        */
  37. /*                                Internet f491.n343.z1.fidonet.org         */
  38. /*                                                                          */
  39. /* Please feel free to contact us at any time to share your comments about  */
  40. /* our software and/or licensing policies.                                  */
  41. /*                                                                          */
  42. /*--------------------------------------------------------------------------*/
  43.  
  44. #ifdef NEED_DOSREAD
  45. int _dos_read (int, void far *, unsigned, unsigned int *);
  46. int _dos_write (int, void far *, unsigned, unsigned int *);
  47. #endif
  48.  
  49. #ifdef NEED_CPUTS
  50. int _cdecl cputs (const char *);
  51. #endif
  52.  
  53. #ifdef NEED_PUTCH
  54. int _cdecl putch (int);
  55. #endif
  56.  
  57. #ifdef NEED_CPRINTF
  58. int _cdecl cprintf (const char *,...);
  59. #endif
  60.  
  61. #ifdef NEED_MKTEMP
  62. extern char *mktemp (char *);
  63. #endif
  64.  
  65. #ifdef BINKLEY_SOUNDS
  66. extern void Make_Sound (char *);
  67. #endif
  68.  
  69. #ifdef DOS16
  70. int _cdecl real_flush (int);
  71. #endif
  72.  
  73. #ifdef OS_2
  74. void set_fileinfo (int, unsigned, unsigned);
  75. #endif    /* OS_2  */
  76.  
  77. #ifdef Snoop
  78.  
  79. #if defined(__IBMC__) || (defined(__WATCOMC__) && defined(__FLAT__))
  80. short _Far16 _Pascal mesgfunc (short error, char * _Seg16 _Far16 mesq);
  81. #else    /* #ifdef __IBMC__ */
  82. #if defined (OS_2) && defined (__BORLANDC__)
  83. short __far16 __pascal mesgfunc (short error, char * __far16 __far16 mesq);
  84. #else
  85. static int far pascal _loadds mesgfunc (int error, char far * mesq);
  86. #endif    /* __BORLANDC__ and OS_2 */
  87. #endif    /* #ifdef __IBMC__ */
  88.  
  89. void snoop_open (char *pipename);
  90. void snoop_close (void);
  91. #endif    /* Snoop */
  92.  
  93. struct _key_fnc_hdr *KbMapSet (struct _key_fnc_hdr *KeyFncHdr);
  94. void com_kick (void);
  95. void b_sbinit (void);
  96. void sb_clean (void);
  97. void sb_dirty (void);
  98. void sb_init (void);
  99. int sb_input_chars (REGIONP, short, short, char *, short);
  100. REGIONP sb_new (short, short, short, short);
  101. int sb_popup (short, short, short, short, int (*)(BINK_SAVEP, int), int);
  102. int sb_putc (REGIONP, short);
  103. void sb_restore (BINK_SAVEP);
  104. BINK_SAVEP sb_save (short, short, short, short);
  105. void sb_show (void);
  106.  
  107. unsigned short pascal KbRemap (unsigned short ScanCode);
  108. void sb_box (REGIONP, short, short);
  109. void sb_caption (REGIONP, char *);
  110. void sb_fill (REGIONP, short, short);
  111. void sb_filla (REGIONP, short);
  112. void sb_fillc (REGIONP, short);
  113. void sb_move (REGIONP, short, short);
  114. void sb_puts (REGIONP, char *);
  115. unsigned char sb_ra (REGIONP, short, short);
  116. unsigned char sb_rc (REGIONP, short, short);
  117. unsigned int sb_rca (REGIONP, short, short);
  118. void sb_scrl (REGIONP, short);
  119. void sb_wa (REGIONP, short, short);
  120. void sb_wc (REGIONP, short, short);
  121. void sb_wca (REGIONP, short, short, short);
  122.  
  123. int Do_Get (BINK_SAVEP, int);
  124. int Do_Send (BINK_SAVEP, int);
  125. int Do_Kill (BINK_SAVEP, int);
  126. int Do_Poll (BINK_SAVEP, int);
  127. int Do_Poll_Packet (BINK_SAVEP, int);
  128. int Do_Zoom (BINK_SAVEP, int);
  129.  
  130. int Upload (char *, int, char *);
  131. int Download (char *, int, char *);
  132.  
  133. void set_prior (int);
  134. int load_language (void);
  135. void b_initvars (void);
  136. void b_defaultvars (void);
  137. void b_exitproc (void);
  138. int got_ESC (void);
  139. void BBSexit (void);
  140. long timerset (unsigned int);
  141. int timeup (long);
  142. void dostime (int *, int *, int *, int *);
  143. void _cdecl time_release (void);
  144. void fossil_gotoxy (int, int);
  145. int fossil_wherex (void);
  146. int fossil_wherey (void);
  147. unsigned _cdecl dos_box_active (void);
  148. unsigned _cdecl windows_active (void);
  149. unsigned _cdecl dv_get_version (void);
  150. unsigned _cdecl tv_get_version (void);
  151. unsigned _cdecl ddos_active (void);
  152. unsigned _cdecl ml_active (void);
  153. unsigned _cdecl mos_active (void);
  154. void dos_break_off (void);
  155. void mtask_find (void);
  156. void _cdecl windows_pause (void);
  157. void _cdecl mos_pause (void);
  158. void _cdecl dv_pause (void);
  159. void _cdecl ddos_pause (void);
  160. void _cdecl tv_pause (void);
  161. void _cdecl ml_pause (void);
  162. void _cdecl msdos_pause (void);
  163. void _cdecl os2_pause (void);
  164. void _cdecl status_line (char *,...);
  165. int time_to_next (int);
  166. void write_sched (void);
  167. void close_up (void);
  168. void scr_printf (char *);
  169. int SendBanner (char far *);
  170. void opening_banner (void);
  171. void mailer_banner (void);
  172. void UUCPexit (int, int);
  173. void come_back (void);
  174. char *fancy_str (char *);
  175. int got_error (char *, char *);
  176. int dfind (struct FILEINFO *, char *, int);
  177. int n_frproc (char *, int, int (*)(char *), int (*)(long));
  178. void Make_Response (char *, int);
  179. int do_FLOfile (char *, int (*)(char *));
  180. void fidouser (char *, ADDR *);
  181. void opususer (char *, ADDR *);
  182. void main_help (void);
  183. void mailer_help (void);
  184. int n_password (char *, char *, int *);
  185. int n_getpassword (ADDR *);
  186. int nodefind (ADDR *, int);
  187. void do_extern (char *, int, char *);
  188. int dexists (char *);
  189. int do_script (char *);
  190. void timer (int);
  191. void mdm_cmd_string (char *, int);
  192. void send_break (int);
  193. void mdm_cmd_char (int);
  194. int modem_response (int);
  195. char *get_response (long);
  196. int set_baud (unsigned long, int);
  197. void program_baud (void);
  198. int list_search (void);
  199. int checklist (void);
  200. int nodeproc (char *);
  201. int try_1_connect (char *);
  202. void gong (void);
  203. void b_init (void);
  204. void b_session (int);
  205. void do_ready (char *);
  206. int FTSC_receiver (int);
  207. int Whack_CR (void);
  208. void FTSC_sender (int);
  209. int YooHoo_Receiver (void);
  210. void last_type (int, ADDR *);
  211. void WaZOO (int);
  212. void EMSI (int);
  213. int YooHoo_Sender (void);
  214. int get_Zmodem (char *, FILE *);
  215. int Send_Zmodem (char *, char *, int, int);
  216. int send_WaZOO (void);
  217. int send_EMSI (void);
  218. int respond_to_file_requests (int, int (*)(char *), int (*)(long));
  219. void mdm_hangup (void);
  220. void Janus (void);
  221. void invent_pkt_name (char *);
  222. int send_Hello (int);
  223. void set_xy (char *);
  224. char *receive_file (char *, char *, char);
  225. void read_sched (void);
  226. void parse_config (char *);
  227. char *ctl_string (char *);
  228. int parse (char *, struct parse_list far *);
  229. void bottom_line (void);
  230. void do_today (void);
  231. void boss_mail (int);
  232. int unattended (void);
  233. int get_number (char *);
  234. void try_2_connect (char *);
  235. void change_prompt (void);
  236. int do_mail (ADDR *, int);
  237. void ansi_map (unsigned int);
  238. void mdm_init (char *);
  239. void fossil_ver (void);
  240. char *zalloc (void);
  241. int xfermdm7 (char *);
  242. int send_file (char *, char);
  243. int recvmdm7 (char *);
  244. MAINTYPE main (int, char **);
  245. int opusfind (ADDR *, int);
  246. int ver7find (ADDR *, int);
  247.  
  248. #ifdef QUICK_LIST
  249. int QuickLookup (ADDR *, int);
  250. #endif
  251.  
  252. int TBBSLookup (ADDR *, int);
  253. char *skip_blanks (char *);
  254. int parse_event (char *);
  255. char *skip_to_blank (char *);
  256. void SEA_sendreq (void);
  257. int try_sealink (void);
  258. int SEA_recvreq (void);
  259. void clear_filetransfer (void);
  260. long throughput (int, unsigned long);
  261. char *numdisp (long);
  262. int is_arcmail (char *, int);
  263. void send_can (void);
  264. int bad_call (ADDR *, int);
  265. void receive_exit (void);
  266. void xmit_sameplace (void);
  267. void find_event (void);
  268. void errl_exit (int);
  269. void errl_shell (int);
  270. long random_time (int);
  271. int handle_inbound_mail (int);
  272. void xmit_reset (int);
  273. int xmit_next (ADDR *);
  274. void kill_bad (void);
  275. void put_up_time (void);
  276. void adios (int);
  277. void big_pause (int);
  278. long zfree (char *);
  279. void show_debug_name (char *);
  280. char *check_netfile (char *);
  281. void unique_name (char *);
  282. void write_sched (void);
  283. void z_message (char *);
  284. int Z_GetByte (int);
  285. void Z_PutString (unsigned char *);
  286. void Z_SendHexHeader (unsigned int, unsigned char *);
  287. int Z_GetHeader (unsigned char *);
  288. int Z_GetZDL (void);
  289. void Z_PutLongIntoHeader (long);
  290. void z_log (char *);
  291. void show_loc (unsigned long, unsigned int);
  292. void Z_UncorkTransmitter (void);
  293. void z_log (char *);
  294. char *add_backslash (char *);
  295. char *delete_backslash (char *);
  296. void vfossil_init (void);
  297. void vfossil_close (void);
  298. void vfossil_cursor (int);
  299. MAILP find_mail (ADDR *);
  300. void xmit_window (MAILP);
  301. void xmit_delete (void);
  302. char *HoldAreaNameMunge (ADDR *);
  303. int LoadScanList (int, int);
  304. void swapper (char far *, char far *, int, char far *, unsigned);
  305. void b_spawn (char *);
  306. void do_dial_strings (void);
  307. void exit_DTR (void);
  308. void delete_old_file (char *);
  309. long cost_of_call (int, long, long);
  310. void update_files (int , char *, long, long, long);
  311. void screen_clear (void);
  312. void clear_eol (void);
  313. void log_product (int, int, int);
  314. int b_term (void);
  315. void set_up_outbound (void);
  316. int is_user (char *);
  317. int next_minute (void);
  318. void can_Janus (char *);
  319. int Modem7_Receive_File (char *);
  320. int Modem7_Send_File (char *);
  321. int Batch_Receive (char *);
  322. int Batch_Send (char *);
  323. int Xmodem_Send_File (char *, char *);
  324. int Xmodem_Receive_File (char *, char *);
  325. int SEAlink_Send_File (char *, char *);
  326. int Telink_Send_File (char *, char *);
  327. unsigned short crc_block (unsigned char *, int);
  328. void Data_Check (XMDATAP, int);
  329. void wait_for_key (int);
  330. void Get_Block (XMARGSP);
  331. int Xmodem_Send (int, int, long);
  332. void Send_Block (XMARGSP);
  333. int calc_window (void);
  334. int Receive_Resync (long *);
  335. void Xmodem_Error (char *, long);
  336. int Header_in_data (unsigned char *);
  337. void Find_Char (int);
  338. int Xmodem_Receive (int, char *);
  339. void Send_Response (int, int *, int *, int *, long, int, long);
  340. void Set_Up_Telink (XMDATAP, TLDATAP, long *);
  341. void End_Telink (int, TLDATAP, XMDATAP, char *, int);
  342. void Wait_Clear (int);
  343. void Send_Resync (long, int);
  344. int state_machine (STATEP, void *, int);
  345. int Bark_Request (char *, char *, char *, char *);
  346. void Build_Bark_Packet (BARKARGSP);
  347. int Receive_Bark_Packet (BARKARGSP);
  348. int Batch_Xmodem_Receive_File (char *, char *);
  349. long Set_Up_Restart (XMARGSP);
  350. void Finish_Xmodem_Receive (XMARGSP);
  351. void Get_Telink_Info (XMARGSP);
  352. int Read_Block (XMARGSP);
  353. void Check_ACKNAK (XMARGSP);
  354. void show_block (long, char *, XMARGSP);
  355. int check_failed (char *, char *, char *, char *);
  356. void add_abort (char *, char *, char *, char *, char *);
  357. void remove_abort (char *, char *);
  358. void Build_Header_Block (XMARGSP, char);
  359. void show_sending_blocks (XMARGSP);
  360. char *show_num (XMARGSP, long);
  361. void elapse_time (void);
  362. int parse_address (char *, ADDR *);
  363. int find_address (char *, ADDR *);
  364. char *Hex_Addr_Str (ADDR *);
  365. char *Full_Addr_Str (ADDR *);
  366. char *add_domain (char *);
  367. char *find_domain (char *);
  368. int flag_file (int, ADDR *, int);
  369. int term_overlay (short);
  370. void write_stats (void);
  371. void list_next_event (void);
  372. int machine (STATEP, void *, int);
  373. int share_open (char *, int, int);
  374. FILE *share_fopen (char *, char *, int);
  375. void forcexitcheck (void);
  376. int forcerescancheck (void);
  377. int faxreceive (int);
  378. int SquishScan(char *);
  379.